/*
 * The I piece.
 */

package tetris.model;

import java.awt.Color;

public class PieceL extends Piece{
    public PieceL(){
        super(4, Color.ORANGE);
        buildRotations();
    }

    private void buildRotations(){
        super.rotations[0] = new Rotation(new Coordinates(0, 1),    // X
                                          new Coordinates(0, -1),   // O
                                          new Coordinates(1, -1)); //  X X

        super.rotations[1] = new Rotation(new Coordinates(-1, 0),   // X O X
                                          new Coordinates(1, 0),    // X
                                          new Coordinates(-1, -1));          //

        super.rotations[2] = new Rotation(new Coordinates(-1, 1),   // X X
                                          new Coordinates(0, 1),    //   O
                                          new Coordinates(0, -1));  //   X

        super.rotations[3] = new Rotation(new Coordinates(1, 1),    //     X
                                          new Coordinates(-1, 0),   // X O X
                                          new Coordinates(1, 0));   //
    }
}
